<!doctype html>
<html>

<head>  
    <title>{$category.name} {$category.seo_title} {$site_info.site_name|default=''}</title>
    <meta name="keywords" content="{$category.seo_keywords},{$site_info.site_seo_keywords|default=''}" />
    <meta name="description" content="{$category.seo_description} {$site_info.site_seo_description|default=''}" />
    <include file="public@head"/>
    <include file="public@function"/>
    <link href="__TMPL__/public/assets/css/index.css" rel="stylesheet">
</head>

<body>

    <div id="wrapper">
        <include file="public@header"/>
        <div class="jztop"></div>
        <div class="container">
            <h3 class="nh1"><span>您现在的位置是：<a href="/" target="_self">网站首页</a>>><a href="{:cmf_url('portal/List/index',array('id'=>$category['id']))}" target="_blank">{$category.name}</a></span><b>{$category.name}</b></h3>        
            <div class="bloglist f_l">
                <php>
                    $where=[
                    'post.create_time'=>['egt',0]
                    ];
                </php>
                <portal:articles item="vo" where="$where" order="post.create_time DESC" page="6"
                relation="categories"
                categoryIds="$category.id"
                returnVarName="articles_data">
                <h2><a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['category_id']))}">{$vo.post_title}</a></h2>
                <figure>
                    <if condition="empty($vo.more.thumbnail)">
                    <img src="__TMPL__/public/assets/images/img_{:mt_rand(1,2)}.jpg" alt="{$vo.post_title}">
 
                    <else/>
                    <img src="{:cmf_get_image_url($vo.more.thumbnail)}" alt="{$vo.post_title}"/>      
                    </if>
                </figure>
                <ul>
                    <p> {$vo.post_excerpt|default=''} </p>
                    <a title="{$vo.post_title}" href="{:cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['category_id']))}" target="_blank" class="readmore">阅读全文&gt;&gt;</a>
                </ul>
                <p class="dateview"><span>{:date('Y-m-d H:i:s',$vo['create_time'])}</span><span></span><span>{$site_info.site_name|default=''}：[<a href="{:cmf_url('portal/List/index',array('id'=>$vo['category_id']))}">{$category_arr[$vo.category_id]}</a>]</span></p>
                </portal:articles>
                <ul class="pagination">
                    <page/>
                </ul>
            </div>
            <div class="r_box f_r">
                
                <div class="tit01">
                    <h2 class="tit">关注我</h2>
                    <div class="gzw">
                        <ul>
                            <li><span class="icon icon-user"></span> <b>五五</b></li>                           
                            <li><span class="icon icon-unif1d6"></span> <b>753993761</b></li>
                            <li><span class="icon icon-phone"></span> <b>15093565100</b></li>
                            <li><span class="icon icon-github_sign"> <b> github.com/yangguangwuwu</b></span></li>
                            <li><span class="icon icon-envelope"></span> <b>15093565100@163.com</b></li>                        
                        </ul>
                    </div>
                </div>
                <!--tit01 end-->

                <widget name="recommended_articles">
                <div class="tuwen">
                    <h2 class="tit">{$widget.title}</h2>
                    <ul>
                        <portal:articles limit="7" order="post.recommended DESC"
                        categoryIds="$widget.vars.recommended_articles_category_id">
                        <li>   
                            <a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['category_id']))}" target="_blank">
                                <if condition="empty($vo.more.thumbnail)">
                                <img src="__TMPL__/public/assets/images/0{:mt_rand(1,6)}.jpg" alt="{$vo.post_title}">
                                <else/>
                                <img src="{:cmf_get_image_url($vo.more.thumbnail)}" alt="{$vo.post_title}"/>      
                                </if>
                                <b>{$vo.post_title}</b></a>
                            <p><span class="tulanmu"><a href="{:cmf_url('portal/List/index',array('id'=>$vo['category_id']))}" target="_blank">{$category_arr[$vo.category_id]}</a></span><span class="tutime">{$vo.create_time|date='Y-m-d',###}</span></p>
                        </li>
                        </portal:articles>
                    </ul>
                </div>
                </widget>
                <widget name="hottest_articles">
                <div class="ph">
                    <h2 class="tit">{$widget.title}</h2>
                    <ul class="rank">
                        <portal:articles limit="12" order="post.post_hits DESC"
                        categoryIds="$widget.vars.hottest_articles_category_id">
                        <li>
                            <a title="{$vo.post_title}"
                                href="{:cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['category_id']))}"  target="_blank">
                                {$vo.post_title}
                            </a>
                        </li>
                        </portal:articles>
                    </ul>
                </div>
                </widget>               
                <div class="ad"> <img src="__TMPL__/public/assets/images/03.jpg" alt="{$site_info.site_name|default=''}"> </div>
            </div>
        </div>
        <!-- container代码 结束 -->
        <div class="jzend"></div>
        <include file="public@footer"/>
    </div>
</body>

</html>
